class Person {
  constructor(name, age, gender) {
    this.name = name
    this.age = age
    this.gender = gender
  }

  sayName() {
    console.log(this.name);
  }
}

class Student extends Person {
  constructor(name, age, gender, stuNo) {
    super(name, age, gender)
    this.stuNo = stuNo

  }
}

let p = new Person('廖', 12, '男')
// console.log(p);
let student = new Student('LLL', 23, '女', 001)
// console.log(student);
student.sayName()
